package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName("tb_user")
@Data
@Accessors(chain = true)
public class User extends BasePojo{

    @TableId(type = IdType.AUTO)
    private Long id;    //主键
    private String username;    //用户名
    private String password;    //密码
    private String phone;       //电话
    private String email;       //邮箱地址 暂时用电话代替

/*    create table tb_user
    (
    id                   bigint not null auto_increment,
    username             varchar(50),
    password             varchar(32) comment 'MD5加密',
    phone                varchar(20),
    email                varchar(50),
    created              datetime,
    updated              datetime,
    primary key (id)
);*/
}
